<?php
/*
 * 顧客
 */
// Top
use DaveJamesMiller\Breadcrumbs\Facades\Breadcrumbs;

Breadcrumbs::register('customer.home', function ($breadcrumbs) {
    $breadcrumbs->push('Top', route('customer.home'));
});

// Top > 商品詳細
Breadcrumbs::register('customer.goods_detail', function ($breadcrumbs) {
    $breadcrumbs->parent('customer.home');
    $breadcrumbs->push('商品詳細', route('customer.goods_detail'));
});
// Top > 商品詳細 > 在庫照会
Breadcrumbs::register('customer.goods_stock_inquiry', function ($breadcrumbs) {
    $breadcrumbs->parent('customer.home');
//    $breadcrumbs->parent('customer.goods_detail');
    $breadcrumbs->push('在庫照会', route('customer.goods_stock_inquiry'));
});

// Top > 発注状況照会
Breadcrumbs::register('customer.order_situation', function ($breadcrumbs) {
    $breadcrumbs->parent('customer.home');
    $breadcrumbs->push('発注状況照会', route('customer.order_situation'));
});

// Top > 発注履歴照会
Breadcrumbs::register('customer.order_history', function ($breadcrumbs) {
    $breadcrumbs->parent('customer.home');
    $breadcrumbs->push('発注履歴照会', route('customer.order_history'));
});

// Top > 発注残照会
Breadcrumbs::register('customer.order_remaining', function ($breadcrumbs) {
    $breadcrumbs->parent('customer.home');
    $breadcrumbs->push('発注残照会', route('customer.order_remaining'));
});

// Top > サイズ交換依頼
Breadcrumbs::register('customer.size_exchange', function ($breadcrumbs) {
    $breadcrumbs->parent('customer.home');
    $breadcrumbs->push('サイズ交換依頼', route('customer.size_exchange'));
});
// Top > 登録情報変更
Breadcrumbs::register('customer.customer_info_change', function ($breadcrumbs) {
    $breadcrumbs->parent('customer.home');
    $breadcrumbs->push('登録情報変更', route('customer.customer_info_change'));
});

// Top > 請求書ダウンロード
Breadcrumbs::register('customer.invoice_download', function ($breadcrumbs) {
    $breadcrumbs->parent('customer.home');
    $breadcrumbs->push('請求書ダウンロード', route('customer.invoice_download'));
});

/***********
 * 管理者
 **********/
// Top
Breadcrumbs::register('admin.home', function ($breadcrumbs) {
    $breadcrumbs->push('Top', route('admin.home'));
});

// Top > セール品マスタ
Breadcrumbs::register('admin.sale_master', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('セール品マスタ', route('admin.sale_master'));
});
Breadcrumbs::register('admin.sale_add', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.sale_master');
    $breadcrumbs->push('セール追加', route('admin.sale_add'));
});


Breadcrumbs::register('admin.set_add', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.set');
    $breadcrumbs->push('セール追加', route('admin.set_add'));
});

Breadcrumbs::register('admin.setgoods', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('設定マスタ', route('admin.setgoods'));
});

// Top > 商品マスタ
Breadcrumbs::register('admin.goods_list', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('商品一覧', route('admin.goods_list'));
});
Breadcrumbs::register('admin.goods_master', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.goods_list');
    $breadcrumbs->push('商品マスタ', route('admin.goods_master'));
});
// Top > 仕入先マスタ
Breadcrumbs::register('admin.supplier_list', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('仕入先一覧', route('admin.supplier_list'));
});
Breadcrumbs::register('admin.supplier_master', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.supplier_list');
    $breadcrumbs->push('仕入先マスタ', route('admin.supplier_master'));
});

Breadcrumbs::register('admin.shoplist', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('店舗一覧', route('admin.shoplist'));
});

Breadcrumbs::register('admin.shop_master', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.shoplist');
    $breadcrumbs->push('店舗マスタ', route('admin.shop_master'));
});

Breadcrumbs::register('admin.set', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('セット品マスタ', route('admin.set'));
});

Breadcrumbs::register('admin.corp_list', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('会社一覧', route('admin.corp_list'));
});
// Top >会社マスタ
Breadcrumbs::register('admin.corp_master', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.corp_list');
    $breadcrumbs->push('会社マスタ', route('admin.corp_master'));
});

// Top > カテゴリー
Breadcrumbs::register('admin.category_master', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('カテゴリマスタ', route('admin.category_master'));
});

// Top >ユーザーマスタ
Breadcrumbs::register('admin.user_list', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('ユーザ一覧', route('admin.user_list'));
});

// Top >ユーザーマスタ
Breadcrumbs::register('admin.user_detail', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.user_list');
    $breadcrumbs->push('ユーザーマスタ', route('admin.user_detail'));
});

    // Top > 価格設定マスタ
Breadcrumbs::register('admin.pricesetting_master', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('価格設定マスタ', route('admin.pricesetting_master'));
});

    // Top > 商品価格設定マスタ
Breadcrumbs::register('admin.select_corp_price', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('会社選択', route('admin.select_corp_price'));
});
Breadcrumbs::register('admin.goods_price', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('商品価格設定一覧', route('admin.goods_price'));
});
Breadcrumbs::register('admin.goods_price_master', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.goods_price');
    $breadcrumbs->push('商品価格設定マスタ', route('admin.goods_price_master'));
});
// Top > 商品詳細 > 在庫照会wearの場合
Breadcrumbs::register('customer.goods_stock_wear', function ($breadcrumbs) {
    $breadcrumbs->parent('customer.home');
    $breadcrumbs->push('在庫照会 WEARの場合', route('customer.goods_stock_wear'));
});

//passwordchange
Breadcrumbs::register('admin.pschange', function ($breadcrumbs) {
    $breadcrumbs->parent('admin');
    $breadcrumbs->push('Passwordchange', route('admin'));
});

// Top >会社マスタ

Breadcrumbs::register('admin.select_corp', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('会社選択', route('admin.select_corp'));
});

Breadcrumbs::register('admin.news', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('ニュース情報', route('admin.news'));
});

//--create by shenyang
// Top > 在庫一覧
Breadcrumbs::register('admin.stock_list', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('在庫一覧', route('admin.stock_list'));
});
// Top > 出荷一覧
Breadcrumbs::register('admin.delivery_list', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('出荷一覧', route('admin.delivery_list'));
});
// Top > 納品書発行
Breadcrumbs::register('admin.invoice_list', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('納品書発行', route('admin.invoice_list'));
});
// Top > 返品伝票発行
Breadcrumbs::register('admin.retain_list', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('返品伝票発行', route('admin.retain_list'));
});
// Top > 請求書発行
Breadcrumbs::register('admin.bill_list', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('請求書発行', route('admin.bill_list'));
});
// Top > 請求書発行
Breadcrumbs::register('admin.sail_list', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('売上一覧', route('admin.sail_list'));
});
// Top > 未入金一覧
Breadcrumbs::register('admin.notpaied_list', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('未入金一覧', route('admin.notpaied_list'));
});
// Top > 会社/店舗別売上一覧
Breadcrumbs::register('admin.shop_seil_list', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('会社/店舗別売上一覧', route('admin.shop_seil_list'));
});
// Top > 商品/カテゴリー別売上一覧
Breadcrumbs::register('admin.goods_seil_rank', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('商品/カテゴリー別売上一覧', route('admin.goods_seil_rank'));
});
// Top > 受注処理
Breadcrumbs::register('admin.order', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('受注処理', route('admin.order'));
});
// Top > 入荷処理
Breadcrumbs::register('admin.arrival', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('入荷処理', route('admin.arrival'));
});
// Top > 入金消込
Breadcrumbs::register('admin.income_money', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('入金消込', route('admin.income_money'));
});
// Top > 在庫照会
Breadcrumbs::register('admin.show_stock', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('在庫照会', route('admin.show_stock'));
});
// Top > 受注照会
Breadcrumbs::register('admin.show_order', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('受注照会', route('admin.show_order'));
});
// Top > 仕入照会(履歴/残)
Breadcrumbs::register('admin.show_bay', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('仕入照会(履歴/残)', route('admin.show_bay'));
});
// Top > 出荷照会(履歴/残)
Breadcrumbs::register('admin.show_delivery', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('出荷照会(履歴/残)', route('admin.show_delivery'));
});
// Top > 仕入処理
Breadcrumbs::register('admin.buy', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('仕入処理', route('admin.buy'));
});
// Top > 出荷処理
Breadcrumbs::register('admin.ship', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('出荷処理', route('admin.ship'));
});
// Top > 請求処理
Breadcrumbs::register('admin.invoice_process', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('請求処理', route('admin.invoice_process'));
});
// Top > 請求処理-edit
Breadcrumbs::register('admin.invoice_edit', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.invoice_process');
    $breadcrumbs->push('Edit', route('admin.invoice_edit'));
});
// Top > 棚卸処理-/盘点处理
Breadcrumbs::register('admin.tack_down', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('棚卸処理', route('admin.tack_down'));
});
// Top > 評価替え処理(良/不良)-/库存调整
Breadcrumbs::register('admin.eval_change', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.home');
    $breadcrumbs->push('評価替え処理(良/不良)', route('admin.eval_change'));
});
// Top > 納品書発行2
Breadcrumbs::register('admin.invoice_detail', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.invoice_list');
    $breadcrumbs->push('納品書', route('admin.invoice_detail'));
});
// Top > 納品書発行2
Breadcrumbs::register('admin.invoice_detail2', function ($breadcrumbs) {
    $breadcrumbs->parent('admin.bill_list');
    $breadcrumbs->push('納品書', route('admin.invoice_detail'));
});


// Top > 购物车
Breadcrumbs::register('customer.cart_buy', function ($breadcrumbs) {
    $breadcrumbs->parent('customer.home');
    $breadcrumbs->push('ショッピング車', route('customer.cart_buy'));
});

